package btest;

import java.util.ArrayList;
import java.util.List;

/**
 * AdorynZhao in Toutiao-UESTC.
 * Source Code Created on 2017/12/22.
 */
public class ItemListStringTest {

    public static void main(String[] args) {
        List<Item> items = new ArrayList<>();
        items.add(new Item(1));
        items.add(new Item(2));
        items.add(new Item(3));

        System.out.println(items);
    }

    public static class Item {
        int id = 0;

        Item(int i) {
            this.id = i;
        }

        @Override
        public String toString() {
            return "Item[" + id + "]";
        }
    }
}
